package com.example.bgxqwebsocket.dao;

import com.example.bgxqapi.domain.dao.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author lizijian
 */
@Mapper
public interface UserDao {

  /**
   * 通过用户id查找用户
   * @param id
   * @return
   */
  @Select("SELECT * FROM `user` WHERE id=#{id} ")
  User getUserById(int id);

}
